import request from '@/utils/request'

// 查询通话记录授权列表
export function listApplyCallLog(query) {
    return request({
        url: '/business/ApplyCallLog/list',
        method: 'get',
        params: query
    })
}

// 查询通话记录授权详细
export function getApplyCallLog(id) {
    return request({
        url: '/business/ApplyCallLog/' + id,
        method: 'get'
    })
}

// 新增通话记录授权
export function addApplyCallLog(data) {
    return request({
        url: '/business/ApplyCallLog',
        method: 'post',
        data: data
    })
}

// 修改通话记录授权
export function updateApplyCallLog(data) {
    return request({
        url: '/business/ApplyCallLog',
        method: 'put',
        data: data
    })
}

// 删除通话记录授权
export function delApplyCallLog(id) {
    return request({
        url: '/business/ApplyCallLog/' + id,
        method: 'delete'
    })
}

// 导出通话记录授权
export function exportApplyCallLog(query) {
    return request({
        url: '/business/ApplyCallLog/export',
        method: 'get',
        params: query
    })
}